/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Chat;

import Slave.SlaveClient;
import java.util.Vector;
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.*;

/**
 * @author Mr Bao
 */
public class Yahoo extends MIDlet implements Runnable {

    private boolean isRunning = true;
    public static Display display;
    public static SlaveClient slaveClient;
    public static Vector queueMessage = new Vector();

    public void startApp() {
        display = Display.getDisplay(this);
        display.setCurrent(new LoginForm());
        slaveClient = new SlaveClient("localhost", 9999);
    }

    public void pauseApp() {
    }

    public void destroyApp(boolean unconditional) {
    }

    public static void DisplaySplashScreen(String username, String password, boolean invisible) {
        SplashForm splashForm = new SplashForm(username, password, invisible);
        display.setCurrent(splashForm);
    }

    public static void DisplayChat() {
        ChatForm f = new ChatForm();
        display.setCurrent(f);
    }

    public static void DisplayLogin() {
        LoginForm f = new LoginForm();
        display.setCurrent(f);
    }

    public void run() {
    }
}
